﻿using System;
using System.Text;

namespace Lisphi.Lab.NewFeatureTests
{
    public partial class Person
    {
        public string Name { get; set; }
        public GenderType Gender { get; set; }

        private int _age;
        public int Age { get { return this._age; } set { this._age = value; } }

        public bool IsEmpty()
        {
            return this == null;
        }

        public enum GenderType { Male, Female }

        partial void PartialFunc();

        public void InvokePartialFunc()
        {
            this.PartialFunc();
        }
    }

    public static class PersonExtensionMethod
    {
        public static bool IsMale(this Person source)
        {
            return source.Gender == Person.GenderType.Male;
        }

        public static bool IsNull(this Person source)
        {
            return source == null;
        }
    }
}
